<?php
// 允许跨域
header('Access-Control-Allow-Origin: *');
$username = $_POST['username'];
$password = $_POST['password'];
$arr = ['username' => 'luo', 'password' => "123456", "text" => "Hello,honey!你好!"];
if ($arr['username'] == $username && $arr['password'] == $password) {
    echo json_encode($arr['text']);
} else {
    echo json_encode('用户名或密码不正确！');
}